//
//  CXPayProcess.h

//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger,ShowType){
    kUseShowTypeTableView = 0,//tableview显示
    kUseShowTypeCollection,//collectionView显示
};
typedef NS_ENUM(NSInteger,OrderType){
    kUsePayTypeCard = 0,//支付卡
    kUsePayTypeOrder,//支付订单
    kUsePayTypeCombo,//支付套餐
    kUsePayTypeCharge,//支付充值
};
/** 通知回调 result 1成功 0失败 -1取消*/
typedef void(^PayCompletedCallBack)(NSDictionary *dict);

@interface CXPayProcess : NSObject

@property (nonatomic ,copy) PayCompletedCallBack payCompletedCallBack;


+(instancetype)shareInstance;

/// <#Description#>
/// @param orderType 用来判断是针对哪种类型的订单进行支付，
/// @param showType 是tableView还是collectionView
/// @param processid 订单ID
/// @param payMoney 付款金额
/// @param target <#target description#>
/// @param completedCallBack <#completedCallBack description#>
-(void)payProcessMethodType:(OrderType)orderType andShowType:(ShowType)showType WithProcess:(NSString *)processid andMoney:(NSString *)payMoney andTarget:(UIViewController *)target completedCallBack:(PayCompletedCallBack)completedCallBack;

@end

NS_ASSUME_NONNULL_END
